package model

type UserLogin struct {
	Mobile   string `form:"mobile" json:"mobile" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

type CourseAdd struct {
	Name              string  `form:"name" json:"name" binding:"required"`
	CourseInformation string  `form:"course_information" json:"course_information" binding:"required"`
	CourseDuration    string  `form:"course_duration" json:"course_duration" binding:"required"`
	Price             float64 `form:"price" json:"price" binding:"required"`
	Stock             int     `form:"stock" json:"stock" binding:"required"`
	State             int     `form:"state" json:"state" binding:"required"`
	Picture           string  `form:"picture" json:"picture" binding:"required"`
}

type CourseInfo struct {
	CourseId int `form:"course_id" json:"course_id" binding:"required"`
}

type CourseUpdateState struct {
	CourseId int `form:"course_id" json:"course_id" binding:"required"`
	State    int `form:"state" json:"state" binding:"required"`
}
type CourseDeleted struct {
	CourseId int `form:"course_id" json:"course_id" binding:"required"`
}
type CreateDiscountCourse struct {
	CourseId  int64   `form:"course_id" json:"course_id" binding:"required"`
	StartTime string  `form:"start_time" json:"start_time" binding:"required"`
	EndTime   string  `form:"end_time" json:"end_time" binding:"required"`
	NowPrice  float64 `form:"now_price" json:"now_price" binding:"required"`
	Num       int64   `form:"num" json:"num" binding:"required"`
}
type CreateDiscountCourseOrder struct {
	CourseId int64 `form:"course_id" json:"course_id" binding:"required"`
	Num      int64 `form:"num" json:"num" binding:"required"`
}
type OrderPay struct {
	OrderId int64 `form:"orderId" json:"orderId" binding:"required"`
	Pay     int64 `form:"pay" json:"pay" binding:"required"`
}
